package com.modemMgr.vo;

public class PrivilegeInfo {
	private int privilege_id;
	private String privilege_name;
	private int privilege_type;
	private boolean is_valid;
	private String privilege_value;
	private int parent_pri_id;
	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("PrivilegeInfo:{privilege_id:");
		sb.append(privilege_id);
		sb.append(",privilege_name:");
		sb.append(privilege_name);
		sb.append(",parent_pri_id:");
		sb.append(parent_pri_id);
		sb.append(",privilege_value:");
		sb.append(privilege_value);
		sb.append(",privilege_type:");
		sb.append(privilege_type);
		sb.append("}");
		
		return sb.toString();
	}
	public int getPrivilege_id() {
		return privilege_id;
	}
	public void setPrivilege_id(int privilege_id) {
		this.privilege_id = privilege_id;
	}
	public String getPrivilege_name() {
		return privilege_name;
	}
	public void setPrivilege_name(String privilege_name) {
		this.privilege_name = privilege_name;
	}
	public int getPrivilege_type() {
		return privilege_type;
	}
	public void setPrivilege_type(int privilege_type) {
		this.privilege_type = privilege_type;
	}
	public boolean isIs_valid() {
		return is_valid;
	}
	public void setIs_valid(boolean is_valid) {
		this.is_valid = is_valid;
	}
	public String getPrivilege_value() {
		return privilege_value;
	}
	public void setPrivilege_value(String privilege_value) {
		this.privilege_value = privilege_value;
	}
	public int getParent_pri_id() {
		return parent_pri_id;
	}
	public void setParent_pri_id(int parent_pri_id) {
		this.parent_pri_id = parent_pri_id;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + privilege_id;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PrivilegeInfo other = (PrivilegeInfo) obj;
		if (privilege_id != other.privilege_id)
			return false;
		return true;
	}
	
	
}
